package com.lb.jwitter;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.ForeignKey;

@Entity
@Table (name="tbl_QLDTTXA_HocVien_DangKyMonHoc")
public class Tbl_QLDTTXA_HocVien_DangKyMonHoc implements Serializable {
   private static final long serialVersionUID = -1989579066723007050L;

   private Long id;
   private Tbl_QLDTTXA_MonHoc monHocId = null;
   private Tbl_QLDTTXA_HocVien_PhieuDangKyMonHoc phieuDangKyId = null;
   private Boolean daXepLop = false;

   @Id
   @GeneratedValue
   public Long getId() {
	    return id;
   }
   public void setId(Long id) {
	    this.id= id;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="monHocId")
   @ForeignKey(name="FK_tbl_QLDTTXA_MonHoc_tbl_QLDTTXA_HocVien_DangKyMonHoc")
   public Tbl_QLDTTXA_MonHoc getMonHocId() {
	    return monHocId;
   }
   public void setMonHocId(Tbl_QLDTTXA_MonHoc monHocId) {
	    this.monHocId=monHocId;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="phieuDangKyId")
   @ForeignKey(name="FK_tbl_QLDTTXA_HocVien_PhieuDangKyMonHoc_tbl_QLDTTXA_HocVien_DangKyMonHoc")
   public Tbl_QLDTTXA_HocVien_PhieuDangKyMonHoc getPhieuDangKyId() {
	    return phieuDangKyId;
   }
   public void setPhieuDangKyId(Tbl_QLDTTXA_HocVien_PhieuDangKyMonHoc phieuDangKyId) {
	    this.phieuDangKyId=phieuDangKyId;
   }
public Boolean getDaXepLop() {
	return daXepLop;
}
public void setDaXepLop(Boolean daXepLop) {
	this.daXepLop = daXepLop;
}
}//endClass 

